# File: ally_archer_poison.gd
extends TechnologyResource
class_name AllyArcherPoison

var dot_damage = 15 # 每秒伤害
var duration = 3.0 # 持续时间

func _init() -> void:
	super()
	display_name = tr("tech.archer.poison.name")
	description = tr("tech.archer.poison.desc").format({
		"dps": dot_damage,
		"duration": duration
	})
	GlobalSignal.gs_ally_deal_damage.connect(_on_attack)

# 处理攻击事件
func _on_attack(attacker: Unit, target: Unit, _damage: int):
	# 例如：BattleUI.show_tip(tr("Poison effect applied"))
	pass
